package pojo;

import java.io.Serializable;

public class SpareParts implements Serializable {
    private static final long serialVersionUID = 42L;
    private int id; // 编号
    private String type; // 型号
    private double price; // 出厂价格
    private String time; // 出厂时间

    public SpareParts() {
    }
    public SpareParts(String type, double price, String time) {
        this.type = type;
        this.price = price;
        this.time = time;
    }

    public SpareParts(int id, String type, double price, String time) {
        this.id = id;
        this.type = type;
        this.price = price;
        this.time = time;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return time
     */
    public String getTime() {
        return time;
    }

    /**
     * 设置
     * @param time
     */
    public void setTime(String time) {
        this.time = time;
    }

    public String toString() {
        return "SpareParts{id = " + id + ", type = " + type + ", price = " + price + ", time = " + time + "}";
    }
}
